﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GetCash.aspx.cs"	Inherits="Admin_GetCash" %>
<%@ Register Assembly="QHH.Web" Namespace="QHH.Web.UI.WebControls" TagPrefix="qhh" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title></title>


</head>
<body class="GridBody">
	<form id="GridForm" runat="server">
	<div class="GridPage">
	    <div class="GridToolbar">
			<table class="toolbarTable" cellpadding="0" cellspacing="5">
				<tr>
					<td>
					</td>
					<td>
                        <asp:Button ID='btnUpdate' runat='server' Text='批量确认' OnClientClick='return check();' CssClass="styButton" OnClick="btnUpdate_Click" />
					</td>
				</tr>
			</table>
		</div>
		<div class="GridSearch">
			<div>
				<table border="0" align="left">
					<tr>
						<td align="right" nowrap="nowrap">
							 会员昵称/收款人姓名
						</td>
						<td align="left" style="padding-right: 8px;">
							<asp:TextBox ID="txtName" runat="Server" Width="115px"></asp:TextBox>
						</td>
						<td align="right" nowrap="nowrap">
							 提现状态
						</td>
						<td align="left" style="padding-right: 8px;">
                            <asp:DropDownList ID="txtStatus"  Width="115px" runat="server">
                                <asp:ListItem Text="全部" Value=""></asp:ListItem>
                                <asp:ListItem Text="待确认" Value="1"></asp:ListItem>
                                <asp:ListItem Text="已确认" Value="2"></asp:ListItem>
                            </asp:DropDownList>
						</td>
					</tr>
				</table>
			</div>
			<div class="GridAdvancedSearchButton">
				<asp:Button ID="btnFind" runat="server" Text="搜索" OnClick="Search_Click" CssClass="styButton" />
			</div>
			<div style="clear: both; height: 0px;">
			</div>
		</div>
		<%--表格区域--%>
		<div class="GridTable">
			<asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" Width="100%" CssClass="GridView">
				<Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <input id="Chk_Header" type="checkbox" onclick="selectAllTop(this);" />
                        </HeaderTemplate>
                        <ItemStyle HorizontalAlign="Center"  Width="1%" />
                        <HeaderStyle Width="1%" HorizontalAlign="Center" />
                        <ItemTemplate>
                            <input type="checkbox" id="Chk_Cell" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "Id") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Nickname" HeaderText="会员昵称">
                        <HeaderStyle Width="6%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                   <asp:BoundField DataField="Amount" HeaderText="提现数量" DataFormatString="{0:f2}">
                        <HeaderStyle Width="6%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                   <asp:BoundField DataField="Amount" HeaderText="金额" DataFormatString="{0:f2}">
                        <HeaderStyle Width="6%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="BankName" HeaderText="开户行">
                        <HeaderStyle Width="8%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="BankAddress" HeaderText="开户行地址">
                        <HeaderStyle Width="15%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AccountName" HeaderText="账户名">
                        <HeaderStyle Width="6%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AccountNumber" HeaderText="账号">
                        <HeaderStyle Width="10%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Remark" HeaderText="备注">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="StatusTxt" HeaderText="状态">
                        <HeaderStyle Width="6%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="cdate" HeaderText="申请日期" DataFormatString="{0:yyyy-MM-dd}">
                        <HeaderStyle Width="6%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AdminUserName" HeaderText="确认管理员">
                        <HeaderStyle Width="6%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="pdate" HeaderText="确认日期" DataFormatString="{0:yyyy-MM-dd}">
                        <HeaderStyle Width="6%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
				</Columns>
				<RowStyle CssClass="GridViewRow" />
				<AlternatingRowStyle CssClass="AlternatingRow" />
				<SelectedRowStyle CssClass="GridViewRowSelected" />
				<HeaderStyle CssClass="GridViewHeader" />
				<FooterStyle CssClass="GridViewRow" />
			</asp:GridView>
		</div>
		<%--分页控件--%>
		<div class="GridPager">
			<qhh:Navigator ID="Navigator" runat="server" OnPageChanged="Navigator_PageChanged">
			</qhh:Navigator>
		</div>
	</div>
	<asp:HiddenField ID="hidRecordID" runat="server" />
	
	
	<script language="javascript" type="text/javascript">
	    function Add()
	    {
	        showModalWindow('新增用户', 820, 500, "UserEdit.aspx?s=" + Math.random() + "&ID=");
	        return false;
	    }

	    function Edit(ID, UserName)
	    {
	        showModalWindow('确认用户:' + UserName + '提现', 600, 500, "GetCashEdit.aspx?s=" + Math.random() + "&ID=" + ID);
	    }

	    function check() {
	        if (!checkSelect()) return false;
	        if (!confirm('确认是否改变所选收款状态?')) return false;

	        return true;
	    }
	</script>
	</form>
</body>
</html>
